Filename | (eval 435)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3] |
Statements | Executed 155285 statements in 137ms |
Eval Invoked At | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3 |
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
4197 | 2 | 2 | 131ms | 213ms | new | JSON::Schema::Modern::Error::
1 | 1 | 1 | 43µs | 52µs | BEGIN@126 | JSON::Schema::Modern::Error::
1 | 1 | 1 | 13µs | 32µs | BEGIN@14.335 | JSON::Schema::Modern::Error::
1 | 1 | 1 | 7µs | 12µs | BEGIN@111 | JSON::Schema::Modern::Error::
1 | 1 | 1 | 7µs | 30µs | BEGIN@116 | JSON::Schema::Modern::Error::
1 | 1 | 1 | 7µs | 21µs | BEGIN@121 | JSON::Schema::Modern::Error::
1 | 1 | 1 | 5µs | 15µs | BEGIN@106 | JSON::Schema::Modern::Error::
1 | 1 | 1 | 5µs | 5µs | BEGIN@19.336 | JSON::Schema::Modern::Error::
1 | 1 | 1 | 5µs | 19µs | BEGIN@77 | JSON::Schema::Modern::Error::
1 | 1 | 1 | 3µs | 9µs | BEGIN@82 | JSON::Schema::Modern::Error::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | { | ||||
2 | 2 | 3µs | my $isa_check_for_instance_5flocation = ${$_[1]->{"\$isa_check_for_instance_5flocation"}}; | ||
3 | 1 | 0s | my $isa_check_for_keyword_5flocation = ${$_[1]->{"\$isa_check_for_keyword_5flocation"}}; | ||
4 | 1 | 1µs | my $coerce_for_exception = ${$_[1]->{"\$coerce_for_exception"}}; | ||
5 | 1 | 0s | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||
6 | 1 | 1µs | my $coerce_for_absolute_5fkeyword_5flocation = ${$_[1]->{"\$coerce_for_absolute_5fkeyword_5flocation"}}; | ||
7 | 1 | 0s | my $isa_check_for_absolute_5fkeyword_5flocation = ${$_[1]->{"\$isa_check_for_absolute_5fkeyword_5flocation"}}; | ||
8 | 1 | 1µs | my $isa_check_for_mode = ${$_[1]->{"\$isa_check_for_mode"}}; | ||
9 | 1 | 0s | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||
10 | 1 | 0s | my $isa_check_for_keyword = ${$_[1]->{"\$isa_check_for_keyword"}}; | ||
11 | 1 | 0s | my $isa_check_for_error = ${$_[1]->{"\$isa_check_for_error"}}; | ||
12 | 1 | 1µs | my $isa_check_for_exception = ${$_[1]->{"\$isa_check_for_exception"}}; | ||
13 | package JSON::Schema::Modern::Error; | ||||
14 | 2 | 44µs | 2 | 51µs | # spent 32µs (13+19) within JSON::Schema::Modern::Error::BEGIN@14.335 which was called:
# once (13µs+19µs) by Sub::Quote::_clean_eval at line 14 # spent 32µs making 1 call to JSON::Schema::Modern::Error::BEGIN@14.335
# spent 19µs making 1 call to warnings::unimport |
15 | # spent 213ms (131+81.8) within JSON::Schema::Modern::Error::new which was called 4197 times, avg 51µs/call:
# 4196 times (131ms+81.8ms) by JSON::Schema::Modern::Utilities::E at line 227 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern/Utilities.pm, avg 51µs/call
# once (49µs+31µs) by JSON::Schema::Modern::Utilities::E at line 177 of Sub/Defer.pm | ||||
16 | ($_QUOTED,$_UNQUOTED) if 0; | ||||
17 | # BEGIN quote_sub PRELUDE | ||||
18 | package JSON::Schema::Modern::Error; | ||||
19 | # spent 5µs within JSON::Schema::Modern::Error::BEGIN@19.336 which was called:
# once (5µs+0s) by Sub::Quote::_clean_eval at line 24 | ||||
20 | 1 | 1µs | $^H = 2018; | ||
21 | 1 | 1µs | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU"; | ||
22 | 1 | 3µs | %^H = ( | ||
23 | ); | ||||
24 | 1 | 181µs | 1 | 5µs | } # spent 5µs making 1 call to JSON::Schema::Modern::Error::BEGIN@19.336 |
25 | # END quote_sub PRELUDE | ||||
26 | 4196 | 1.22ms | my $invoker = CORE::shift(); | ||
27 | 4196 | 1.92ms | my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker; | ||
28 | 4196 | 1.81ms | if ($class ne "JSON::Schema::Modern::Error") { | ||
29 | if ($Moo::MAKERS{$class}) { | ||||
30 | if ($Moo::MAKERS{$class}{constructor}) { | ||||
31 | package JSON::Schema::Modern::Error; | ||||
32 | return $invoker->SUPER::new(@_); | ||||
33 | } | ||||
34 | Moo->_constructor_maker_for($class); | ||||
35 | return $invoker->new(@_); | ||||
36 | } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) { | ||||
37 | return $meta->new_object( | ||||
38 | $class->can("BUILDARGS") ? $class->BUILDARGS(@_) | ||||
39 | : $class->Moo::Object::BUILDARGS(@_) | ||||
40 | ); | ||||
41 | } | ||||
42 | } | ||||
43 | my $args = scalar @_ == 1 | ||||
44 | ? CORE::ref $_[0] eq 'HASH' | ||||
45 | 4196 | 12.6ms | ? { %{ $_[0] } } | ||
46 | : Carp::croak("Single parameters to new() must be a HASH ref" | ||||
47 | . " data => ". $_[0]) | ||||
48 | : @_ % 2 | ||||
49 | ? Carp::croak("The new() method for $class expects a hash reference or a" | ||||
50 | . " key/value list. You passed an odd number of arguments") | ||||
51 | : {@_} | ||||
52 | ; | ||||
53 | 4196 | 7.55ms | if (my @missing = grep !exists $args->{$_}, "error", "instance_location", "keyword", "keyword_location") { | ||
54 | Carp::croak("Missing required arguments: ".CORE::join(', ', sort @missing)); | ||||
55 | } | ||||
56 | 4196 | 2.08ms | my $new = bless({}, $class);; | ||
57 | 4196 | 1.35ms | (exists $args->{"absolute_keyword_location"} and ($new->{"absolute_keyword_location"} = scalar do { my $value = do { | ||
58 | 4196 | 8.81ms | local $Method::Generate::Accessor::CurrentAttribute = { | ||
59 | init_arg => "absolute_keyword_location", | ||||
60 | name => "absolute_keyword_location", | ||||
61 | step => "coercion", | ||||
62 | }; | ||||
63 | 4196 | 2.36ms | (my $_return), | ||
64 | (my $_error), (my $_old_error = $@); | ||||
65 | 4196 | 1.73ms | (eval { | ||
66 | ($@ = $_old_error), | ||||
67 | ($_return = | ||||
68 | 4196 | 11.4ms | 4196 | 74.9ms | $coerce_for_absolute_5fkeyword_5flocation->($args->{"absolute_keyword_location"})), # spent 74.9ms making 4196 calls to JSON::Schema::Modern::Error::__ANON__[/Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern/Error.pm:39], avg 18µs/call |
69 | 1 | ||||
70 | } or | ||||
71 | $_error = CORE::ref $@ ? $@ : "coercion for \"absolute_keyword_location\" failed: ".$@); | ||||
72 | 4196 | 1.67ms | ($@ = $_old_error), | ||
73 | (defined $_error and CORE::die $_error); | ||||
74 | 4196 | 4.00ms | $_return; | ||
75 | } | ||||
76 | ; | ||||
77 | 12590 | 18.9ms | 8394 | 3.65ms | # spent 19µs (5+14) within JSON::Schema::Modern::Error::BEGIN@77 which was called:
# once (5µs+14µs) by Sub::Quote::_clean_eval at line 77 # spent 1.93ms making 4196 calls to Scalar::Util::blessed, avg 461ns/call
# spent 1.68ms making 4196 calls to UNIVERSAL::isa, avg 401ns/call
# spent 19µs making 1 call to JSON::Schema::Modern::Error::BEGIN@77
# spent 14µs making 1 call to warnings::unimport |
78 | $value | ||||
79 | } | ||||
80 | )), | ||||
81 | 4196 | 1.47ms | (exists $args->{"error"} and ($new->{"error"} = scalar do { my $value = $args->{"error"}; | ||
82 | 16786 | 8.10ms | 2 | 15µs | # spent 9µs (3+6) within JSON::Schema::Modern::Error::BEGIN@82 which was called:
# once (3µs+6µs) by Sub::Quote::_clean_eval at line 82 # spent 9µs making 1 call to JSON::Schema::Modern::Error::BEGIN@82
# spent 6µs making 1 call to warnings::unimport |
83 | $value | ||||
84 | } | ||||
85 | )), | ||||
86 | (exists $args->{"exception"} and ($new->{"exception"} = scalar do { my $value = do { | ||||
87 | local $Method::Generate::Accessor::CurrentAttribute = { | ||||
88 | init_arg => "exception", | ||||
89 | name => "exception", | ||||
90 | step => "coercion", | ||||
91 | }; | ||||
92 | (my $_return), | ||||
93 | (my $_error), (my $_old_error = $@); | ||||
94 | (eval { | ||||
95 | ($@ = $_old_error), | ||||
96 | ($_return = | ||||
97 | $coerce_for_exception->($args->{"exception"})), | ||||
98 | 1 | ||||
99 | } or | ||||
100 | $_error = CORE::ref $@ ? $@ : "coercion for \"exception\" failed: ".$@); | ||||
101 | ($@ = $_old_error), | ||||
102 | (defined $_error and CORE::die $_error); | ||||
103 | $_return; | ||||
104 | } | ||||
105 | ; | ||||
106 | 2 | 46µs | 2 | 25µs | # spent 15µs (5+10) within JSON::Schema::Modern::Error::BEGIN@106 which was called:
# once (5µs+10µs) by Sub::Quote::_clean_eval at line 106 # spent 15µs making 1 call to JSON::Schema::Modern::Error::BEGIN@106
# spent 10µs making 1 call to warnings::unimport |
107 | $value | ||||
108 | } | ||||
109 | )), | ||||
110 | 4196 | 1.54ms | (exists $args->{"instance_location"} and ($new->{"instance_location"} = scalar do { my $value = $args->{"instance_location"}; | ||
111 | 16786 | 6.42ms | 2 | 17µs | # spent 12µs (7+5) within JSON::Schema::Modern::Error::BEGIN@111 which was called:
# once (7µs+5µs) by Sub::Quote::_clean_eval at line 111 # spent 12µs making 1 call to JSON::Schema::Modern::Error::BEGIN@111
# spent 5µs making 1 call to warnings::unimport |
112 | $value | ||||
113 | } | ||||
114 | )), | ||||
115 | 4196 | 1.72ms | (exists $args->{"keyword"} and ($new->{"keyword"} = scalar do { my $value = $args->{"keyword"}; | ||
116 | 16786 | 5.09ms | 2 | 53µs | # spent 30µs (7+23) within JSON::Schema::Modern::Error::BEGIN@116 which was called:
# once (7µs+23µs) by Sub::Quote::_clean_eval at line 116 # spent 30µs making 1 call to JSON::Schema::Modern::Error::BEGIN@116
# spent 23µs making 1 call to warnings::unimport |
117 | $value | ||||
118 | } | ||||
119 | )), | ||||
120 | 4196 | 1.11ms | (exists $args->{"keyword_location"} and ($new->{"keyword_location"} = scalar do { my $value = $args->{"keyword_location"}; | ||
121 | 16786 | 5.86ms | 2 | 35µs | # spent 21µs (7+14) within JSON::Schema::Modern::Error::BEGIN@121 which was called:
# once (7µs+14µs) by Sub::Quote::_clean_eval at line 121 # spent 21µs making 1 call to JSON::Schema::Modern::Error::BEGIN@121
# spent 14µs making 1 call to warnings::unimport |
122 | $value | ||||
123 | } | ||||
124 | )), | ||||
125 | 4196 | 28.0ms | (exists $args->{"mode"} and ($new->{"mode"} = scalar do { my $value = $args->{"mode"}; | ||
126 | 2 | 318µs | 2 | 61µs | # spent 52µs (43+9) within JSON::Schema::Modern::Error::BEGIN@126 which was called:
# once (43µs+9µs) by Sub::Quote::_clean_eval at line 126 # spent 52µs making 1 call to JSON::Schema::Modern::Error::BEGIN@126
# spent 9µs making 1 call to warnings::unimport |
127 | $value | ||||
128 | } | ||||
129 | )), | ||||
130 | return $new; | ||||
131 | } | ||||
132 | 1 | 1µs | $$_UNQUOTED = \&new; | ||
133 | } | ||||
134 | 1 | 9µs | 1; | ||
135 | |||||
136 | ; |